/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.impl;

import estg.dae.projecto.bank.IElectronicOperation;
import estg.dae.projecto.bank.OperationType;
import java.util.Date;

/**
 *
 * @author Marco
 */
public class ElectronicOperationTO implements IElectronicOperation {
    private OperationType operationType;
    private String originNib;
    private String destinNib;
    private String cardNumber;
    private String paymentEntity;
    private String paymentReference;
    private double value;
    private Date date;

    public OperationType getOperationType() {
        return operationType;
    }

    public String getOriginNib() {
        return originNib;
    }

    public String getDestinNib() {
        return destinNib;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public String getPaymentEntity() {
        return paymentEntity;
    }

    public String getPaymentReference() {
        return paymentReference;
    }

    public double getValue() {
        return value;
    }

    public Date getDate() {
        return date;
    }

    public ElectronicOperationTO() {
    }

    public ElectronicOperationTO(IElectronicOperation electronicOperation) {
        operationType = electronicOperation.getOperationType();
        originNib = electronicOperation.getOriginNib();
        destinNib = electronicOperation.getDestinNib();
        cardNumber = electronicOperation.getCardNumber();
        paymentEntity = electronicOperation.getPaymentEntity();
        paymentReference = electronicOperation.getPaymentReference();
        value = electronicOperation.getValue();
        date = electronicOperation.getDate();
    }
}
